#ifndef WORDLINE_H
#define WORDLINE_H

#include <stdio.h>
#include <string>
#include <vector>
#include "PamImage.h"
#include "Word.h"

using namespace std;

class WordsLine
{  

  struct WordSeperation{
    int xPosition;
    int runLength;
  };
  
  public:
    WordsLine(int top, int bottom, int left, int right, int shear, int lineNr, string documentName);
    ~WordsLine();
    
    int top;
    int left;
    int bottom;
    int right;
    int shear;
    int base;
    int x;
    int lineNumber;
    string documentName;
    PamImage image;
    PamImage shearedImage;
    
    std::vector<Word> words;
  
    void addWord(Word w);
    int width();
    
    int height();
};
#endif